import Vue from 'vue'
import {
  Field,
  Button,
  NavBar,
  Icon,
  Col,
  Row,
  Image as VanImage,
  Form,
  List,
  Tab,
  Tabs,
  DropdownMenu,
  DropdownItem,
  Popup,
  Picker,
  Collapse,
  CollapseItem,
  Steps,
  Step,
  Toast,
  Loading,
  Skeleton,
  Radio,
  RadioGroup,
  Cell,
  Checkbox,
  CheckboxGroup,
  CellGroup,
  DatetimePicker,
  Uploader,
  Notify,
  Area,
  Search,
  Dialog,
  Tag,
  Overlay,
  Lazyload,
} from 'vant'
// import 'vant/lib/index.css';

Vue.use(Field)
  .use(Button)
  .use(NavBar)
  .use(Icon)
  .use(Form)
  .use(Col)
  .use(Row)
  .use(VanImage)
  .use(List)
  .use(Tab)
  .use(Tabs)
  .use(DropdownMenu)
  .use(DropdownItem)
  .use(Popup)
  .use(Picker)
  .use(Collapse)
  .use(CollapseItem)
  .use(Steps)
  .use(Skeleton)
  .use(Loading)
  .use(Radio)
  .use(RadioGroup)
  .use(CellGroup)
  .use(Cell)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(DatetimePicker)
  .use(Uploader)
  .use(Notify)
  .use(Area)
  .use(Step)
  .use(Search)
  .use(Dialog)
  .use(Overlay)
  .use(Lazyload, {
    lazyComponent: true,
    loading: require('@/assets/images/loading/loading.gif'),
  })
  .use(Tag)

Vue.prototype.$toast = Toast
Vue.prototype.$notify = Notify
